package cn.txzhang.bookstores.modular.business.vo;

import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class BookAddDTO implements Serializable {

    private Long id;
    @NotNull(message = "书名不能为空")
    private String bookName;
    @NotNull(message = "作者不能为空")
    private String author;
    @NotNull(message = "出版社不能为空")
    private String press;
    @NotNull(message = "简介不能为空")
    private String content;
    @NotNull(message = "类型不能为空")
    private String type;
}
